import { defineStore } from 'pinia'
const permissionApi = usePermission()
export const useAuth = defineStore('auth', {
  state: () => ({
    //左侧权限菜单
    menu: []
  }),
  actions: {
    //设置左侧权限菜单
    setmenu(menus) {
      this.menu = menus
    },
    //发起请求获取左侧权限菜单
    getSlideMenuAction() {
      return permissionApi.getSlideMenu()
    }
  }
})
